import com.project.MainBG;
import com.project.bean.CusReturnBean;
import com.project.bean.OrderReturnProductBean;
import com.project.service.*;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.ArrayList;
import java.util.List;

@SpringBootTest(classes = MainBG.class)
public class test {
    @Autowired
    private IAllGoodsService IAllGoodsService;
    @Autowired
    private IPutInStorageService IPutInStorageService;

    @Autowired
    private IRecordService IRecordService;
    @Autowired
    private IPromotionalService promotionalService;
    @Autowired
    private IWaitProductServiceRE waitProductServiceRE;
//    @Autowired
//    private IWa
    @Test
    public void test(){
//        allGoodsService.test();
//        List<InventoryEntity> list=allGoodsService.findAllGoodsItem(1,"","").getRecords();
//        IAllGoodsService.findGoodsById(1,"1");
//        IAllGoodsService.findGoodsColorsById("1");
//        allGoodsService.findGoodsByColor(1,"1","白");
//        recordService.findRecordAll(1,"").getRecords();
//        List<OrderReturnProductBean>list=new ArrayList<>();
//        list.add(new OrderReturnProductBean("1",3));
//        list.add(new OrderReturnProductBean("2",4));
//        CusReturnBean cusReturnBean=new CusReturnBean(1, list);
//        IPutInStorageService.goodsRejected(cusReturnBean);
//        promotionalService.findAllByStatus();
//        IPutInStorageService.findByRejectedId(1,1).getRecords();
//        IPutInStorageService.findByRejected(1);//
//        IPutInStorageService.te();

//        System.out.println(1);
//                    System.err.println(waitProductServiceRE.findWaitProductByTypeAndName("电子产品", "手机"));

        System.err.println(waitProductServiceRE.findWaitProductByTypeAndName("test", "test"));
    }
}
